import { SVGProps } from "react"


export const SkerIcon: React.FC<{ name: string, title?: string, titleId?: string, desc?: string, descId?: string } & SVGProps<any>> = (props) => {
    const Component = Reflect.get(window, props.name)
    const { name, ...other } = props;
    if(Component) return <Component {...other} />
    return <>{name}</>
}

